﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
        Location="ScriptLink"
        ScriptSrc="EnhancedNew.js" />
    <CustomAction
        Id="LV.EnhancedNewDocLib"
        Location="CommandUI.Ribbon"
        RegistrationId="101"
        
        RegistrationType="List">
        <CommandUIExtension>
            <CommandUIDefinitions>
                <CommandUIDefinition Location="Ribbon.Documents.New.NewDocument">
                    <Button Id="Ribbon.Documents.New.NewDocument"
                            Sequence="10"
                            Command="EnhancedNew"
                            LabelText="$Resources:core,cui_ButNewDocument;"
                            Image16by16="/_layouts/15/$Resources:core,Language;/images/formatmap16x16.png?rev=23"
                            Image16by16Top="-79"
                            Image16by16Left="-1"
                            Image32by32="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png?rev=23"
                            Image32by32Top="-35"
                            Image32by32Left="-69"
                            ToolTipTitle="$Resources:core,cui_ButNewDocument;"
                            ToolTipDescription="$Resources:core,cui_STT_ButNewDocument;"
                            TemplateAlias="o1" />
                </CommandUIDefinition>
            </CommandUIDefinitions>
            <CommandUIHandlers>
                <CommandUIHandler
                    Command="EnhancedNew"
                    CommandAction="javascript:showEnhancedNew()" />
            </CommandUIHandlers>
        </CommandUIExtension>
    </CustomAction>
    <Control Id="AdditionalPageHead"
             Sequence="100"
             ControlSrc="~/_controltemplates/15/immersivenew.ascx"/>
</Elements>
